package com.zxd.threads.thread_lock.pessimistic_lock;

/**
 * ClassName:Test
 * Package:com.zxd.threads.thread_optimistic_lock
 *
 * @Date:2023/9/28 14:22
 * @Author:zxde
 */
public class Test {
    public static void main(String[] args) {
        Movie movie = new Movie(0);
        RunnableTask runnableTask = new RunnableTask(movie);
        for (int i = 0;i<100;i++){
            new Thread(runnableTask).start();
        }
    }
}
